// components/home-center-tab/index.js
Component({

  /**
   * 组件的属性列表
   */
  properties: {

  },

  /**
   * 组件的初始数据
   */
  data: {
    showTaskPicker: false
  },

  /**
   * 组件的方法列表
   */
  methods: {
    handleAddWork(){
      this.setData({ showTaskPicker: true });
    },
    onTaskPickerConfirm(e) {
      console.log('选择了:', e.detail.value);
      let status=e.detail.value
      wx.navigateTo({
        url: `/package_work/pages/addWork/index?`+`status=${status}`,
      })
      // 处理选择结果
    },
  
    onTaskPickerCancel() {
      console.log('用户取消了选择');
    },
    handleCall(){
      wx.makePhoneCall({
        phoneNumber: '19982929330',
      })
    },
    handleFeed(){
      wx.navigateTo({
        url: '/package_feed/pages/feedback/index',
      })
    },
    
  }
})